<div ng-controller="GetOneDeviceCtrl">
<div class="panel panel-default">

 	<div class="panel-body" style="padding-top: 0;padding-bottom: 0;">                 
  		<div class="nav navbar-nav m-t"> 
            <a ui-sref="app.sys.editdev({epage:$state.params.eadpage,devid:$state.params.devid,pid:aaData.product_id})" ><span style="background-color: #e0e0e0; text-align: center;"><i class="glyphicon glyphicon-arrow-left" style="height:30px;width:30px; "></i></span></a>  			            
            <span><b>系统设置</b></span>
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>产品管理</b> </span>
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>设备列表</b></span> 
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>设备基本信息配置</b></span> 
         </div>
        <!-- nabar right -->
        <ul class="nav navbar-nav navbar-right">          
          <li class="dropdown" dropdown>
            <a href class="dropdown-toggle clear" dropdown-toggle>
              <span class="thumb-sm avatar pull-right m-t-n-sm m-b-n-sm m-l-sm">
                <img src="img/a0.jpg" alt="...">
                <i class="on md b-white bottom"></i>
              </span>
              <span class="hidden-sm hidden-md"><b>{{namedata}}</b></span> <b class="caret"></b>
            </a>
            <!-- dropdown -->
            <ul class="dropdown-menu animated fadeInRight w">  
              <li>
                <a ui-sref="app.user.info">用户信息</a>
              </li>       
              <li class="divider"></li>
              <li>
                <a ui-sref="access.signin" ng-click="logout()">登出</a>
              </li>
            </ul>
            <!-- / dropdown -->
          </li>
        </ul>
 	</div>
</div>
<div class="panel m-t-n-md">
  <div class="panel-body">
    <div class="row">
      <div class="col-md-6">
        <h4><b>设备基本信息</b></h4>
        <table class="table" style="font-size: 16px;">
          <tr>
            <td>设备编号：{{aaData.equipment_snumber}}</td>
           
          </tr>
           <tr>
            <td>产品名称：{{aaData.product_name}}</td>
            
          </tr>
          <tr>
            <td>MAC地址：{{aaData.mac_address}}</td>
           
          </tr>
           <tr>
            <td>设备名称：{{aaData.equipment_name}}</td>
         
          </tr>
          <tr>
            <td>设备品牌：{{aaData.brand}}</td>
          
          </tr>
          <tr>
            <td><button class="btn btn-sm " ui-sref="app.sys.editdevbasicinfo({devid:aaData.equipment_id,ebpage:$state.params.eadpage})">编辑</button></td>
        
          </tr>
        </table>
      </div>
      <div class="col-md-6">
        <h4><b>设备附加信息</b></h4>
        <table class="table" style="font-size: 16px;">
          <tr>
            <td>
               <div class="form-group">
                <label class="col-md-3 control-label">安装人员：</label>
                <div class="col-md-9" >
                    <input type="text" class="form-control"  ng-model="aaData.installer" />
                       
                </div>     
              </div>
            </td>         
          </tr>
          <tr>
            <td>
             <div class="form-group">
                <label class="col-md-3 control-label">安装日期：</label>
                <div class="col-md-9" ng-controller="DatepickerCtrl">
                     <!--  <input type="text" class="form-control"  ng-model="oo.equipment_date" >    -->
                      <div class="input-group">
                        <input type="text" class="form-control" datepicker-popup="{{format}}" ng-model="aaData.install_date" is-open="opened" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
                        <span class="input-group-btn">
                          <button type="button" class="btn btn-default form-control" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                        </span>
                        </div>     
                    </div>
                </div>
            </td>
            
          </tr>
          <tr>
            <td>
            <div class="form-group">
                <label class="col-md-3 control-label">入网日期：</label>
                <div class="col-md-9" ng-controller="DatepickerCtrl">
                     <!--  <input type="text" class="form-control"  ng-model="oo.equipment_date" >    -->
                      <div class="input-group">
                        <input type="text" class="form-control" datepicker-popup="{{format}}" ng-model="aaData.equipment_date" is-open="opened" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
                        <span class="input-group-btn">
                          <button type="button" class="btn btn-default form-control" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                        </span>
                        </div>     
                    </div>
                </div>
            </td>
         
          </tr>
          <tr>
            <td class="text-center">
            <button class="btn btn-sm m-r" ng-click="saveadditionalinfo()">保存</button>
            <button class="btn btn-sm" ui-sref="app.sys.editdev({devid:$state.params.devid,epage:$state.params.eadpage,pid:$scope.aaData.product_id})">取消</button>
            </td>          
          </tr>
        </table>
      </div>
    </div>
  </div>
</div>
